<%@ page import="bean.User" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.sql.Timestamp" %>
<%@ page import="com.mysql.cj.x.protobuf.MysqlxDatatypes" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/14/014
  Time: 18:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSP脚本</title>
</head>
<body>
<%!
    public static String show(Integer i){
        return new String("" + i + i + i + i + i);
    }
    public User getUser(String name,String password){
        User user = new User();
        user.setUsername(name);
        user.setRegisteTime(new Timestamp(new Date().getTime()));
        user.setPassword(password);
        return user;
    }
%>
<%--JSP注释不会出现在前端页面中
<!--HTML注释会出现在前端页面中

-->
--%>


<!--HTML注释会出现在前端页面中
<%--JSP注释不会出现在前端页面中

--%>
-->
<%
    out.write(show(10));
%>
<br>
<br>
<%=getUser("wy","123")%>
</body>
</html>
